package com.example.server.web.utils;

import com.example.server.web.domain.LoginUser;
import org.springframework.security.core.context.SecurityContextHolder;

public class LoginUserUtil {
    public static LoginUser getLoginUser(){
        return (LoginUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
    }
}
